/*
 * Created: Author: Aléx Carvalho / Date: May 14, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-11 04:28:43 +0000 (Thu, 11 Jun 2015) $
 */
package com.cpm.entities.types;

import com.cpm.wrapper.GenericType;

public enum IndicatorPeriodicity implements GenericType<Integer> {

    MONTHTY(1, "Mensal"),
    QUARTERLY(2, "Trimestral"),
    SEMIANNUAL(3, "Semestral"),
    YEARLY(4, "Anual");

    private final Integer id;
    private final String name;

    private IndicatorPeriodicity(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public Integer getId() { return id; }

    @Override
    public String toString() { return name; }
}
